package com.platform.dto;

import com.platform.comm.validation.constraints.EqualField;
import com.platform.comm.validation.groups.Pwd;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * Description: 密码-DTO
 *
 * @author libin Created on 2019/7/20
 **/
@Data
@EqualField(baseField = "pwd",matchField = "confirmPwd", groups = Pwd.class)
public class PwdQo implements Serializable {

    private static final long serialVersionUID = 7982910013399346730L;
    @NotEmpty(message = "原密码不能为空", groups = Pwd.class)
    private String oldPwd;
    @NotEmpty(message = "新密码不能为空", groups = Pwd.class)
    private String pwd;
    private String confirmPwd;
}
